import request from '@/utils/request';

//获取系统信息
export function getSystemInfo() {
	return request({
		method: 'get',
		url: '/info'
	})
}

//获取应用信息
export function getAppInfo() {
	return request({
		method: 'get',
		url: '/site'
	})
}

//获取系统参数
export function getSystemParams(data) {
	return request({
		method: 'get',
		url: '/parameters'
	})
}

//获取会话数据
export function getWorkflowLog(params) {
	return request({
		method: 'get',
		url: '/workflows/logs',
		// url: '/conversations',
		params
	})
}

//开始会话
export function runWorkflows(data) {
	return request({
		method: 'post',
		url: '/chat-messages',
		data
	});
}

//重置密码
export function getChatMessage(params) {
	return request({
		method: 'get',
		url: '/messages',
		params
	})
}